// import echarts from 'echarts'
export default function getOption() {
    let option = {
        title: {
            top: 0,
            text: '计划实施状况',
            left: '42%',
            textStyle: {
                color: '#3C4858'
            }
        },
        tooltip: {
            padding: 10,
            backgroundColor: '#555',
            borderColor: '#777',
            borderWidth: 1
        },
        visualMap: {
            show: true,
            showLabel: true,
            categories: [0, 1, 2, 3, 4],
            calculable: true,
            inRange: {
                symbol: 'rect',
                color: ['#fff', '#c6e48b', '#7bc96f', '#239a3b', '#196127']
            },
            itemWidth: 12,
            itemHeight: 12,
            orient: 'horizontal',
            left: '35%',
            bottom: 0
        },
        calendar: [
            {
                left: 'center',
                range: ['2021-06-01', '2021-12-23'],
                cellSize: [25, 25],
                splitLine: {
                    show: true
                },
                itemStyle: {
                    color: '#fff',
                    borderColor: '#d6d6d6',
                    borderWidth: 1
                },
                yearLabel: {
                    show: false
                },
                monthLabel: {
                    nameMap: 'cn',
                    fontSize: 11
                },
                dayLabel: {
                    formatter: '{start}  1st',
                    nameMap: 'cn',
                    fontSize: 11
                }
            }
        ],
        series: [
            {
                type: 'heatmap',
                coordinateSystem: 'calendar',
                calendarIndex: 0,
                data: [
                    ['2021-09-17', 1],
                    ['2021-09-19', 1],
                    ['2021-10-10', 2],
                    ['2021-11-28', 1],
                    ['2021-12-21', 1]
                ]
            }
        ]
    }
    return option
}
